//
//  LDDataPickerView.h
//  zhilian
//
//  Created by 李丹 on 2019/7/23.
//  Copyright © 2019 LZT. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "PGPickerView.h"
#import "LDBottomPopView.h"

NS_ASSUME_NONNULL_BEGIN

@interface LDDataPickerView : UIView<PGPickerViewDelegate, PGPickerViewDataSource>
@property (nonatomic, strong) PGPickerView *pickerView;
@property (nonatomic, assign) CGFloat maxPickerWidth;

@property (nonatomic, strong) NSString *title;
@property (nonatomic, strong) NSString *selectString;
@property (nonatomic, assign) NSInteger selectRow;
@property (nonatomic, strong) NSArray *dataArray;
@property(nonatomic, copy) void (^selectedHandler)(NSString *text);
@property(nonatomic, copy) void (^selectedAllBock)(NSString *text,NSInteger row);

@property (nonatomic, copy)HideBlock hideblock;
- (void)configurePickerWithBgColor:(UIColor *)bgColor
               actionBtnTitleColor:(UIColor *)titleColor
                       centerTitle:(NSString *)centerTitle;

-(instancetype)initWithArray:(NSArray *)arr;
-(void)show;

@end

NS_ASSUME_NONNULL_END
